package com.translate.web.param;
import java.math.BigDecimal;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.IChangeRecordAddParam;
public class ChangeRecordAddParam implements IChangeRecordAddParam {// 变更类型 0 出账 1 入账
@NotNull
@Min(value = ValidateCondtionAndMessage.MIN_STATUS, message = ValidateCondtionAndMessage.MIN_STATUS_MSG)
@Max(value = ValidateCondtionAndMessage.MAX_STATUS, message = ValidateCondtionAndMessage.MAX_STATUS_MSG)
private Byte changeType;
// 余额

private BigDecimal money;
// 变更原因
@NotNull
@Pattern(regexp = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION, message = ValidateCondtionAndMessage.CHINESE_ENGLISH_NUMBER_UNDERLINE_BY_SERIESDESCRIPTION_MSG)
private String reason;
// 用户编号
@NotNull
@Min(value = ValidateCondtionAndMessage.MIN_ID, message = ValidateCondtionAndMessage.MIN_ID_MSG)
private Integer userId;



public Byte getChangeType() {
        return changeType;
    }
public void setChangeType(Byte changeType) {
        this.changeType = changeType;
    }
public BigDecimal getMoney() {
        return money;
    }
public void setMoney(BigDecimal money) {
        this.money = money;
    }
public String getReason() {
        return reason;
    }
public void setReason(String reason) {
        this.reason = reason == null ? null : reason.trim();
    }
public Integer getUserId() {
        return userId;
    }
public void setUserId(Integer userId) {
        this.userId = userId;
    }




}